$(function() {
	
	$('.pic').bind("dblclick",function(){
		var src = $(this).find('img').attr('src');
		src = src.replace(/&?size=\d+x?\d*/, '');
		window.parent.returnValue = "<img src='" + src + "' />";
		window.parent.close();
	});
	
});